import {http} from "@/api/index";

const order = {
    preCheckOrder:'/userOrder/preOrderCheck',
    addOrder:'/userOrder/order',
    orderList:'/userOrder/orders',
    orderItemList:'/userOrder/orderItems'
}

export const orderList = (params)=>{
    return http.request({
        url:order.orderList,
        method:'get',
        params: params
    })
}
export const orderItems = (params)=>{
    return http.request({
        url:order.orderItems,
        method:'get',
        params: params
    })
}
